package com.situ.day250110;

import org.junit.Test;

public class Demo1 {
    @Test
    public void test1(){
        //双目运算符
        char ch = 'a';
        System.out.println(ch);
        System.out.println(ch+1);
        System.out.println((char) (ch+1));
    }
    @Test
    public void test2(){
        int num1 = 3;
        int num2 = 5;
        System.out.println(num1+num2);
        System.out.println(num1%num2);
        System.out.println(num1/num2);
    }
    @Test
    public void test3(){
        int i = 3;
        System.out.println(i);//3
        System.out.println(i++);//3
        System.out.println(i);//4
        System.out.println(++i);//5
    }
    @Test
    public void test4(){
        int score1 = 58;
        int score2 = 300;
        //优先级 :>= && =
        boolean result = (score1 >=  60) && (score2>= 400);
        System.out.println(result);
    }
    @Test
    public void test5(){
        int max1=0;
        int num1 = 3;
        int num2 = 5;
        if(num1>num2){
            max1=num1;
        }else {
            max1=num2;
        }
        System.out.println(max1);
    }

}
